The ClutterFrameClock might still have active references on the ClutterTimeline
when the StSpinnerContent is freed.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8651
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3872>
(cherry picked from commit
e02bd7edf3077c68141c6264e4ce419d51107b2d)
clutter_timeline_set_repeat_count (spinner->timeline, -1);
clutter_timeline_set_progress_mode (spinner->timeline, CLUTTER_LINEAR);
- g_signal_connect (spinner->timeline, "new-frame", G_CALLBACK (new_frame_cb), spinner);
+ g_signal_connect_object (spinner->timeline, "new-frame", G_CALLBACK (new_frame_cb), spinner, 0);
if (clutter_actor_is_mapped (actor))
clutter_timeline_start (spinner->timeline);